﻿using WhiteFlow.Wpf.Common.Mvvm.ViewModel;
using System.Collections.ObjectModel;

namespace WhiteFlow.DevTrackingTool.UI.ViewModels
{
    public class StatsViewModel : WorksheetChildViewModelBase
    {
        #region Constants

        /// <summary>
        /// The ChartTitle property name.
        /// </summary>
        public const string ChartTitlePropertyName = "ChartTitle";

        #endregion

        #region Fields

        private string chartTitle;

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets the title of the chart currently displayed.
        /// </summary>
        /// <value>
        /// The title of the displayed chart.
        /// </value>
        public string ChartTitle
        {
            get { return chartTitle; }
            set
            {
                chartTitle = value;
                OnPropertyChanged(ChartTitlePropertyName);
            }
        }

        #endregion

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="StatsViewModel"/> class.
        /// </summary>
        /// <param name="ownerWorksheetViewModel">The <see cref="WorksheetViewModel"/> instance that owns this instance.</param>
        public StatsViewModel(WorksheetViewModel ownerWorksheetViewModel)
            : base(ownerWorksheetViewModel)
        {
            ChartTitle = "Worked Hours";
        }

        #endregion
    }
}